home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- //
- // Creation Date: May 22, 1997
- // Author: sw
- //
- // Procedure Name:
- // AEshadingEngineTemplate
- //
- // Description Name;
- // Creates the attribute editor controls for the shadingEngine Node
- //
- // Input Value:
- // nodeName
- //
- // Output Value:
- // None
- //
-
- global proc AEshadingEngineShadersNew ( string $surfaceShader,
- string $volumeShader,
- string $imageShader,
- string $displacementShader,
- string $defaultShadows )
- {
- setUITemplate -pst attributeEditorTemplate;
-
- attrNavigationControlGrp
- -l "Surface Material"
- -at $surfaceShader
- surfaceShaderControl;
-
- attrNavigationControlGrp
- -l "Volume Material"
- -at $volumeShader
- volumeShaderControl;
-
- // attrNavigationControlGrp
- // -l "Image Material"
- // -at $imageShader
- // imageShaderControl;
-
- attrNavigationControlGrp
- -l "Displacement Mat."
- -at $displacementShader
- displacementShaderControl;
-
- // attrNavigationControlGrp
- // -l "Default Shadows"
- // -at $defaultShadows
- // defaultShadowsControl;
-
- setUITemplate -ppt;
- }
-
- global proc AEshadingEngineShadersReplace ( string $surfaceShader,
- string $volumeShader,
- string $imageShader,
- string $displacementShader,
- string $defaultShadows )
- {
- attrNavigationControlGrp -edit
- -at $surfaceShader
- surfaceShaderControl;
-
- attrNavigationControlGrp -edit
- -at $volumeShader
- volumeShaderControl;
-
- // attrNavigationControlGrp -edit
- // -at $imageShader
- // imageShaderControl;
-
- attrNavigationControlGrp -edit
- -at $displacementShader
- displacementShaderControl;
-
- // attrNavigationControlGrp -edit
- // -at $defaultShadows
- // defaultShadowsControl;
- }
-
-
- global proc AEshadingEngineTemplate ( string $nodeName )
- {
- AEswatchDisplay $nodeName;
- editorTemplate -beginScrollLayout;
- editorTemplate -beginLayout "Shading Group Attributes" -collapse 0;
- editorTemplate -callCustom "AEshadingEngineShadersNew"
- "AEshadingEngineShadersReplace"
- "surfaceShader"
- "volumeShader"
- "imageShader"
- "displacementShader"
- "defaultShadows";
- editorTemplate -endLayout;
-
- // mental ray material attributes
- if (`exists AEmentalrayMaterial`)
- AEmentalrayMaterial $nodeName;
-
- editorTemplate -suppress "surfaceShader";
- editorTemplate -suppress "volumeShader";
- editorTemplate -suppress "imageShader";
- editorTemplate -suppress "displacementShader";
- editorTemplate -suppress "defaultLights";
- editorTemplate -suppress "defaultShadows";
- editorTemplate -suppress "dagSetMembers";
- editorTemplate -suppress "dnSetMembers";
- editorTemplate -suppress "groupNodes";
- editorTemplate -suppress "usedBy";
- editorTemplate -suppress "unsolicited";
- editorTemplate -suppress "linkedLights";
- editorTemplate -suppress "ignoredLights";
- editorTemplate -suppress "linkedShadows";
- editorTemplate -suppress "ignoredShadows";
-
- // include/call base class/node attributes
- AEobjectSetNoScroll $nodeName;
-
- editorTemplate -suppress "bogusAttribute";
- editorTemplate -addExtraControls;
- editorTemplate -endScrollLayout;
- }
-